#include <stdio.h>
#include "auth_system.h"


int main(void)
{	
	UserNode *users = user_list_init();
	
	user_register(users, "lisi", "123456");
	user_register(users, "zahngsan", "123456");
	user_register(users, "wangmeng", "123456");
	user_register(users, "kuangkkk", "123456");
	
	user_save(users, USER_FILE);
	printf("保存成功\n");
	
	UserNode *test_users = user_list_init();
	user_load(test_users, USER_FILE);
	printf("加载成功\n");
	
	return 0;
}